//验证商品名是否已存在
function findspName() {
    var spName = $(".spName").val();
    $.ajax({
        url:"/myspringboot/DrugAtegoryController/findspName",
        data:{daName:spName},
        type:"post",
        dataType:"json",
        success :function (result) {
            var code = result.code;
            var msg = result.msg;

            if (code==0){
                alert(msg)

            }else {
            }

        }
    })
}